package com.example.motion.service.impl;

import com.example.motion.dao.MotionOfficeMapper;
import com.example.motion.model.MotionOffice;
import com.example.motion.service.IMotionOfficeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <br>Title:
 * <br>Description:
 * <br>Author:
 * <br>Date:
 */
@Service
public class MotionOfficeServiceImpl implements IMotionOfficeService {

    @Autowired
    private MotionOfficeMapper motionOfficeMapper;

    @Override
    public List<MotionOffice> getOfficeList() {
        return motionOfficeMapper.getOfficeList();
    }

    /**
     * 获取分局信息简介
     * @return
     */
    @Override
    public MotionOffice getMotionOfficeIntroduce(String code) {
        return motionOfficeMapper.getMotionOfficeIntroduce(code);
    }
}
